package org.example.bean;

public class PlayerBean {
    private int PlayerId;
    private String PlayerName;
    private int age;
    private TeamBean team;

    public PlayerBean() {
    }

    public PlayerBean(String playerName, int age, TeamBean team) {
        PlayerName = playerName;
        this.age = age;
        this.team = team;
    }

    public int getPlayerId() {
        return PlayerId;
    }

    public void setPlayerId(int playerId) {
        PlayerId = playerId;
    }

    public String getPlayerName() {
        return PlayerName;
    }

    public void setPlayerName(String playerName) {
        PlayerName = playerName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public TeamBean getTeam() {
        return team;
    }

    public void setTeam(TeamBean team) {
        this.team = team;
    }

    @Override
    public String toString() {
        return "PlayerBean{" +
                "PlayerId=" + PlayerId +
                ", PlayerName='" + PlayerName + '\'' +
                ", age=" + age +
                ", team=" + team +
                '}';
    }
}
